package org.brisling.oa.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 * <p>Title: OAExecPurchaseSmall</p>
 * <p>Description: 小型采购执行模块实体类</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2016年7月8日 下午8:09:36
 */
@Entity
@Table(name=ConstSysParam.MODULE_OA_EXECPURCHASESMALL)
public class OAExecPurchaseSmall extends BaseOADomain implements BaseFlowDomainInf{

	
	
	//具体事项(父类name)
	

	//设备id
	@Column(length=30)
	private String sup_id;

	//设备名称
	@Column(length=60)
	private String sup_name;
	
	//设备型号
	@Column(length=50)
	private String sup_model;
	
	//生产厂家
	@Column(length=100)
	private String sup_manufacturer;
	
	//设备序列号
	@Column(length=50)
	private String sup_serial;
	
	//购置日期
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date sup_purchaseDate;
	
	//购置金额
	@Column(length=30)
	private String sup_price;
	
	//固定资产编码
	@Column(length=50)
	private String sup_assetSerial;
	
	//停机时间
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date sup_stopTime;
	//填表日期
//	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
//	private Date apply_date;	
	
	//设备故障(父类apply_content）
	
	//设备科工程师签名
	private String equipment_engineer;

	//维修方案
	@Column(length=500)
	private String repaire_schema;
	
	//维修预算
	private Double repaire_budget;
	
	//审批依据
	private String equipment_survey;
	
	//维修类型
	@Column(length=10)
	private String repaire_type;
	
	//维修公司名称
	@Column(length=100)
	private String repaire_vender;
	
	//维修工程师
	@Column(length=30)
	private String repaire_engineer;
	
	//维修工程师电话
	@Column(length=20)
	private String repaire_engineer_phone;
	
	//申请人员及科室（父类apply_name apply_deptname）

	//科室主管院长审批（父类 directLeader_content）
	
	//设备科审批（父类biz_content）
	
	//设备主管院长审核（父类 chargeLeader_content）
	
	//党委会或院务办审批
    private String pcm_content;
	
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date pcm_time;
	
	private String pcm_name;
	
	private String pcm_id;
	
	//采购招标
    private String tender_content;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date tender_time;
	
	private String tender_name;
	
	private String tender_id;
	
	//采购验收
    private String check_content;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date check_time;
	
	private String check_name;
	
	private String check_id;
	
	//采购入库
    private String storage_content;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date storage_time;
	
	private String storage_name;
	
	private String storage_id;
	
	//纪检监察室审核
    private String discipline_content;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date discipline_time;
	
	private String discipline_name;
	
	private String discipline_id;
	
	
	//合同鉴定施工
    private String appraisal_content;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date appraisal_time;
	
	private String appraisal_name;
	
	private String appraisal_id;
	
	//维修结果-设备状况
	@Column(length=100)
	private String repaire_result;
	
	//维修结果-实际费用
	private Double repaire_cost;
	
	//科室确认
	/**
	 * 科室审核人
	 */
	private Long confirm_id;
	@Column(length=20)
	private String confirm_name;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date confirm_time;
	@Column(length=50)
	private String confirm_content;
	
	public Long getConfirm_id() {
		return confirm_id;
	}

	public void setConfirm_id(Long confirm_id) {
		this.confirm_id = confirm_id;
	}

	public String getConfirm_name() {
		return confirm_name;
	}

	public void setConfirm_name(String confirm_name) {
		this.confirm_name = confirm_name;
	}

	public Date getConfirm_time() {
		return confirm_time;
	}

	public void setConfirm_time(Date confirm_time) {
		this.confirm_time = confirm_time;
	}

	public String getConfirm_content() {
		return confirm_content;
	}

	public void setConfirm_content(String confirm_content) {
		this.confirm_content = confirm_content;
	}

	//开票公司
	@Column(length=100)
	private String invoice_company;
	
	//发票号码
	@Column(length=50)
	private String invoice_number;
	//设备信息子表记录(前端至后端)
	@Transient
	private String supply_sub_info;

	public String getSup_id() {
		return sup_id;
	}

	public void setSup_id(String sup_id) {
		this.sup_id = sup_id;
	}

	public String getSup_name() {
		return sup_name;
	}

	public void setSup_name(String sup_name) {
		this.sup_name = sup_name;
	}

	public String getSup_model() {
		return sup_model;
	}

	public void setSup_model(String sup_model) {
		this.sup_model = sup_model;
	}

	public String getSup_manufacturer() {
		return sup_manufacturer;
	}

	public void setSup_manufacturer(String sup_manufacturer) {
		this.sup_manufacturer = sup_manufacturer;
	}

	public String getSup_serial() {
		return sup_serial;
	}

	public void setSup_serial(String sup_serial) {
		this.sup_serial = sup_serial;
	}

	public Date getSup_purchaseDate() {
		return sup_purchaseDate;
	}

	public void setSup_purchaseDate(Date sup_purchaseDate) {
		this.sup_purchaseDate = sup_purchaseDate;
	}

	public String getSup_price() {
		return sup_price;
	}

	public void setSup_price(String sup_price) {
		this.sup_price = sup_price;
	}

	public String getSup_assetSerial() {
		return sup_assetSerial;
	}

	public void setSup_assetSerial(String sup_assetSerial) {
		this.sup_assetSerial = sup_assetSerial;
	}

	public Date getSup_stopTime() {
		return sup_stopTime;
	}

	public void setSup_stopTime(Date sup_stopTime) {
		this.sup_stopTime = sup_stopTime;
	}

	public String getEquipment_engineer() {
		return equipment_engineer;
	}

	public void setEquipment_engineer(String equipment_engineer) {
		this.equipment_engineer = equipment_engineer;
	}

	public String getRepaire_schema() {
		return repaire_schema;
	}

	public void setRepaire_schema(String repaire_schema) {
		this.repaire_schema = repaire_schema;
	}

	public Double getRepaire_budget() {
		return repaire_budget;
	}

	public void setRepaire_budget(Double repaire_budget) {
		this.repaire_budget = repaire_budget;
	}

	public String getRepaire_type() {
		return repaire_type;
	}

	public void setRepaire_type(String repaire_type) {
		this.repaire_type = repaire_type;
	}

	public String getRepaire_vender() {
		return repaire_vender;
	}

	public void setRepaire_vender(String repaire_vender) {
		this.repaire_vender = repaire_vender;
	}

	public String getRepaire_engineer() {
		return repaire_engineer;
	}

	public void setRepaire_engineer(String repaire_engineer) {
		this.repaire_engineer = repaire_engineer;
	}

	public String getRepaire_engineer_phone() {
		return repaire_engineer_phone;
	}

	public void setRepaire_engineer_phone(String repaire_engineer_phone) {
		this.repaire_engineer_phone = repaire_engineer_phone;
	}

	public String getPcm_content() {
		return pcm_content;
	}

	public void setPcm_content(String pcm_content) {
		this.pcm_content = pcm_content;
	}

	public Date getPcm_time() {
		return pcm_time;
	}

	public void setPcm_time(Date pcm_time) {
		this.pcm_time = pcm_time;
	}

	public String getPcm_name() {
		return pcm_name;
	}

	public void setPcm_name(String pcm_name) {
		this.pcm_name = pcm_name;
	}

	public String getPcm_id() {
		return pcm_id;
	}

	public void setPcm_id(String pcm_id) {
		this.pcm_id = pcm_id;
	}

	public String getRepaire_result() {
		return repaire_result;
	}

	public void setRepaire_result(String repaire_result) {
		this.repaire_result = repaire_result;
	}

	public Double getRepaire_cost() {
		return repaire_cost;
	}

	public void setRepaire_cost(Double repaire_cost) {
		this.repaire_cost = repaire_cost;
	}

	

	public String getInvoice_company() {
		return invoice_company;
	}

	public void setInvoice_company(String invoice_company) {
		this.invoice_company = invoice_company;
	}

	public String getInvoice_number() {
		return invoice_number;
	}

	public void setInvoice_number(String invoice_number) {
		this.invoice_number = invoice_number;
	}

	public String getSupply_sub_info() {
		return supply_sub_info;
	}

	public void setSupply_sub_info(String supply_sub_info) {
		this.supply_sub_info = supply_sub_info;
	}

	public String getTender_content() {
		return tender_content;
	}

	public void setTender_content(String tender_content) {
		this.tender_content = tender_content;
	}

	public Date getTender_time() {
		return tender_time;
	}

	public void setTender_time(Date tender_time) {
		this.tender_time = tender_time;
	}

	public String getTender_name() {
		return tender_name;
	}

	public void setTender_name(String tender_name) {
		this.tender_name = tender_name;
	}

	public String getTender_id() {
		return tender_id;
	}

	public void setTender_id(String tender_id) {
		this.tender_id = tender_id;
	}

	public String getCheck_content() {
		return check_content;
	}

	public void setCheck_content(String check_content) {
		this.check_content = check_content;
	}

	public Date getCheck_time() {
		return check_time;
	}

	public void setCheck_time(Date check_time) {
		this.check_time = check_time;
	}

	public String getCheck_name() {
		return check_name;
	}

	public void setCheck_name(String check_name) {
		this.check_name = check_name;
	}

	public String getCheck_id() {
		return check_id;
	}

	public void setCheck_id(String check_id) {
		this.check_id = check_id;
	}

	public String getStorage_content() {
		return storage_content;
	}

	public void setStorage_content(String storage_content) {
		this.storage_content = storage_content;
	}

	public Date getStorage_time() {
		return storage_time;
	}

	public void setStorage_time(Date storage_time) {
		this.storage_time = storage_time;
	}

	public String getStorage_name() {
		return storage_name;
	}

	public void setStorage_name(String storage_name) {
		this.storage_name = storage_name;
	}

	public String getStorage_id() {
		return storage_id;
	}

	public void setStorage_id(String storage_id) {
		this.storage_id = storage_id;
	}

	public String getDiscipline_content() {
		return discipline_content;
	}

	public void setDiscipline_content(String discipline_content) {
		this.discipline_content = discipline_content;
	}

	public Date getDiscipline_time() {
		return discipline_time;
	}

	public void setDiscipline_time(Date discipline_time) {
		this.discipline_time = discipline_time;
	}

	public String getDiscipline_name() {
		return discipline_name;
	}

	public void setDiscipline_name(String discipline_name) {
		this.discipline_name = discipline_name;
	}

	public String getDiscipline_id() {
		return discipline_id;
	}

	public void setDiscipline_id(String discipline_id) {
		this.discipline_id = discipline_id;
	}

	public String getAppraisal_content() {
		return appraisal_content;
	}

	public void setAppraisal_content(String appraisal_content) {
		this.appraisal_content = appraisal_content;
	}

	public Date getAppraisal_time() {
		return appraisal_time;
	}

	public void setAppraisal_time(Date appraisal_time) {
		this.appraisal_time = appraisal_time;
	}

	public String getAppraisal_name() {
		return appraisal_name;
	}

	public void setAppraisal_name(String appraisal_name) {
		this.appraisal_name = appraisal_name;
	}

	public String getAppraisal_id() {
		return appraisal_id;
	}

	public void setAppraisal_id(String appraisal_id) {
		this.appraisal_id = appraisal_id;
	}

	public String getEquipment_survey() {
		return equipment_survey;
	}

	public void setEquipment_survey(String equipment_survey) {
		this.equipment_survey = equipment_survey;
	}

	

	

	
	
	
}
